var express = require('express');
var apiUser = express.Router();
// http://mockjs.com/
var Mock = require('mockjs');


// 获取用户风险评估情况
apiUser.get('/riskstatus', function(request, response, next) {
    //已评估
    var data = {
        category: "radical",
        description: "激进型"
    };

    response.writeHead(200, { 'Content-Type': 'application/json;charset=utf-8' });
    var responseData = data;
    // responseData = { errorCode: 1044 };
    response.end(JSON.stringify(responseData));

    //未评估

    // response.writeHead(400, { 'Content-Type': 'application/json;charset=utf-8' });
    // var responseData = { errorCode: 1044 };
    // response.end(JSON.stringify(responseData));
});

module.exports = apiUser;
